Amazon.CognitoSync.SyncManager.Internal.SQLiteLocalStorage.RecordColumns.BuildInsert C# (CSharp) Method

BuildInsert() public static method

public static BuildInsert ( string fieldList ) : string
fieldList string
return string
            public static string BuildInsert(string[] fieldList)
            {
                string insert = "INSERT INTO " + SQLiteLocalStorage.TABLE_RECORDS + " (" + string.Join(" ,", fieldList) + " ) " +
                    " VALUES ( ";

                for (int i = 0; i < fieldList.Length; i++)
                {
                    insert += "@" + fieldList[i] + (i < fieldList.Length - 1 ? " , " : " ");
                }

                insert += " )";

                return insert;
            }

Same methods

SQLiteLocalStorage.RecordColumns::BuildInsert ( ) : string