mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 pgsql 索引 B_Tree, Hash, GiST, GIN, SP_GiST, BRIN;
This commit is contained in:
25
Examples/base_entity/pgsql_test.cs
Normal file
25
Examples/base_entity/pgsql_test.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using NetTopologySuite.Geometries;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace base_entity
|
||||
{
|
||||
partial class Program
|
||||
{
|
||||
public static void test_pgsql(IFreeSql fsql)
|
||||
{
|
||||
var ddl = fsql.CodeFirst.GetComparisonDDLStatements<gistIndex>();
|
||||
}
|
||||
}
|
||||
|
||||
[Index("sidx_zjds_geom", nameof(Geom), IndexMethod = IndexMethod.GiST)]
|
||||
class gistIndex
|
||||
{
|
||||
public int bb { get; set; }
|
||||
public LineString Geom { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user