Пример #1
0
        /* protected & private - Field declaration  */

        // ========================================================================== //

        /* public - [Do~Something] Function             */

        public void DoInsert(string strCSV)
        {
            Type        pType        = typeof(T);
            TableConfig pTableConfig = SODB_Setting.instance.GetTableConfig(pType.Name);
            Dictionary <string, ColumnInfo> mapColumnInfo = Generate_ColumnInfo(pTableConfig, pType);
            List <T> listInsert = CSVUtility.FromCSVText_List <T>(strCSV, Debug.LogError);

            ProcessInsert(mapColumnInfo, listInsert, out bool bIsSuccess);
            if (bIsSuccess)
            {
                OnInsert(listInsert);
                rows.AddRange(listInsert);
            }

            Debug.Log($"ProcessInsert {strCSV}");
        }