我该如何建立这个数据库? [英] How do I make this database?
问题描述
如果你曾经下载过pleco,那就是我想编程的东西。但是,我想制作一个多语言版本。我想添加日语和韩语。我希望像字典选项卡一样具有相同的功能,将字符划分为显示个别含义,包含该字符的单词以及示例句子。我还想添加同义词和反义词选项卡。
但是我不知道如何让数据库存储每个字符和同义词,句子等等。
我尝试过:
我在线搜索过此类型的字典:
-------------------------------------- --------------------------------
class StudentName
{
public string FirstName {get;组; }
公共字符串LastName {get;组; }
public int ID {get;组; }
}
类CollInit
{
字典< int,StudentName> ; students = new Dictionary< int,StudentName>()
{
{111,new StudentName {FirstName =Sachin,LastName =Karnik,ID = 211} },
{112,new StudentName {FirstName =Dina,LastName =Salimzianova,ID = 317}},
{113,new StudentName {FirstName = Andy,LastName =Ruth,ID = 198}}
};
}
-------------------------------------------------- --------------------------------
但是,这似乎不适合我需要匹配的语言单词翻译,句子等。
(这将是为Android编程)
例如,
挺:非常;拉直
蛮:非常>
好:好
蛮好看啊!非常好!(蛮和好都链接到这句话)
但是挺蛮链接作为同义词。
我将如何将完全链接到两个意思ings?
---------------------------------------- -----------
请给我看看如何链接它们的可视代码并将它们存储在c#
If you have ever downloaded "pleco", that is what i want to program. But, i want to make a multi language version. I want to add Japanese and Korean. I want the same features like the dictionary tab, have it divide the characters to show individual meanings, words that contain that character, and example sentences. I also want to add a synonym and antonym tab.
But I don't know how to go about making the database to store every character and synonyms, sentences, etc.
What I have tried:
I have searched online and came across this type of dictionary:
----------------------------------------------------------------------
class StudentName
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int ID { get; set; }
}
class CollInit
{
Dictionary<int, StudentName> students = new Dictionary<int, StudentName>()
{
{ 111, new StudentName {FirstName="Sachin", LastName="Karnik", ID=211}},
{ 112, new StudentName {FirstName="Dina", LastName="Salimzianova", ID=317}},
{ 113, new StudentName {FirstName="Andy", LastName="Ruth", ID=198}}
};
}
----------------------------------------------------------------------------------
however, this doesn't seem to fit my need for matching language word translations, sentences, etc.
(This is going to be programmed for android)
for example,
挺:very;to straighten
蛮:very
好:good
蛮好看啊!very good!(蛮 and 好 both link to this sentence)
but 挺 蛮 link as synonyms.
and how would i link 挺to the two meanings?
---------------------------------------------------
please show me visual code for how to link them and store them in c#
推荐答案
如何为多语言词典创建数据库? [ ^ ]所以不需要重新发布。
作为上一个答案的补充。看看多对多(数据模型) - 维基百科 [ ^ ]。它很好地解释了你需要的关系。
There's already quite comprehensive answer at How do I go about making the database for a multi language dictionary?[^] so no need to repost.
As an addition to the previous answer. Have a look at Many-to-many (data model) - Wikipedia[^]. It explains quite well the relationship you need.
这篇关于我该如何建立这个数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!