Compare commits
No commits in common. "07ab6fa3cc0252a0d7d65fe29b900382467f8af6" and "cad060faf893ef6fe5e0a9d95bebdc85b1b56508" have entirely different histories.
07ab6fa3cc
...
cad060faf8
|
|
@ -63,8 +63,8 @@ public class Excel2Prompt
|
||||||
// 自动识别数据类型
|
// 自动识别数据类型
|
||||||
var dataType = GetColumnDataType(nonNullData);
|
var dataType = GetColumnDataType(nonNullData);
|
||||||
|
|
||||||
var prompt = $"- Column '{column.Replace("\n", " ")}' (Excel Column {columnLetter})" +
|
var prompt = $"- Column '{column.Replace("\n", " ")}' (Excel Column {columnLetter})\n" +
|
||||||
$" - Type: {dataType}" +
|
$" - Type: {dataType}\n" +
|
||||||
$" - Sample values: ['{string.Join("', '", sampleValues)}']";
|
$" - Sample values: ['{string.Join("', '", sampleValues)}']";
|
||||||
prompts.Add(prompt);
|
prompts.Add(prompt);
|
||||||
}
|
}
|
||||||
|
|
@ -105,11 +105,11 @@ public class Excel2Prompt
|
||||||
|
|
||||||
private static string GetColumnDataType(List<object> data)
|
private static string GetColumnDataType(List<object> data)
|
||||||
{
|
{
|
||||||
var isInt = true;
|
bool isInt = true;
|
||||||
var isLong = true;
|
bool isLong = true;
|
||||||
var isDouble = true;
|
bool isDouble = true;
|
||||||
var isDateTime = true;
|
bool isDateTime = true;
|
||||||
var isBool = true;
|
bool isBool = true;
|
||||||
|
|
||||||
foreach (var item in data)
|
foreach (var item in data)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue